package testVoyage_SIA;

import static org.junit.Assert.*;

import org.junit.Test;

import voyage_SIA.Pays;
import voyage_SIA.Voyage;

public class VoyageTest {

	@Test
	public void test() {
		assertEquals(1, 1);
	}

	@Test
	public void testVoyage() {
		//US02-TST01
		final Voyage v = new Voyage();
		final Pays p = new Pays();
		p.setNom("Brasil");
		v.setlePays(p);
		p.ajoutVoyage(v);
		p.getleVoyage();
		p.getNom();

		myAssertNotNull(p);
		myAssertNotNull(v);
		assertEquals(p.getNom(), v.getlePays());
		assertNotSame(v.getlePays(), p.getleVoyage());
	}

	private void myAssertNotNull(Object obj) {
		assertNotNull("Is not null", obj);
	}

}
